package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_freight_temp_weight")
public class FreightTempWeightDo extends Model<FreightTempWeightDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("temp_id")
    private Long tempId;

    @TableField("start_volume_weight")
    private Double startVolumeWeight;

    @TableField("end_volume_weight")
    private Double endVolumeWeight;

    @TableField("start_weight")
    private Double startWeight;

    @TableField("end_weight")
    private Double endWeight;

    /**
     * 续重 0 总价 1续重价格 2单价
     */
    @TableField("continue_weight")
    private Integer continueWeight;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;

    /**
     * 类型 freight_temp 物流费模板  channel_price 物流费
     */
    @TableField("weight_type")
    private String weightType;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
